package com.javalab._6feature._2generic;

import java.util.ArrayList;
import java.util.List;

public class GenericCollection {
    public static void main(String[] args) {
        List<Integer> list1 = new ArrayList<>();
        list1.add(1);

        List<String> list2 = new ArrayList<>();
        list2.add("1");
    }
}
